package com.yinhai.msg.email.mapper.read;

import com.yinhai.msg.email.entity.MsgEmailPo;
import com.yinhai.ta404.core.restservice.requestbean.PageParam;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 邮箱配置表(MsgEmail)表数据库访问层
 *
 * @author makejava
 * @since 2019-03-14 10:26:31
 */
public interface MsgEmailReadMapper extends Ta404SupportMapper {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    MsgEmailPo queryById(String id);

    /**
     * 通过实体作为筛选条件查询
     *
     * @param msgEmail 实例对象
     * @return 对象列表
     */
    List<MsgEmailPo> queryAll(MsgEmailPo msgEmail);

    /**
     * 通过emailaddress
     * @param emailaddress
     * @return
     */
    MsgEmailPo queryByEmailAddress(String emailaddress);
}
